var editdialog = {
	title:"提示",
	show:function(id,titles,callback){
		if(titles){
			this.title = titles;
		}
		$(id+" .dialogs-title").html(this.title);	
		$(id+" .confirms-cancle").unbind("click");	
		$(id+" .alert-confirm").unbind("click");	
		$(id+" .confirms-cancle").bind("click",function(){
			$(id).css("visibility","hidden");
		});
		$(id+" .alert-confirm").bind("click",function(){
			$(id).css("visibility","hidden");
			if(callback!=null){
				
				callback();
			}
		});
		$(id).css("visibility","visible");
	},
	hide:function(id){
		
		$(id).css("visibility","hidden");
	}
	
};
